FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER somewhere0813@gmail.com

ENV TZ=Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /exam-system-api

WORKDIR /exam-system-api

EXPOSE 4001

ADD ./exam-system-modules/exam-system-api/target/exam-system-api.jar ./

CMD java -Djava.security.egd=file:/dev/./urandom -jar exam-system-api.jar
